int mostWordsFound(char **sentences, int sentencesSize)
{
    int wordsNum = 1;
    int max = 1;

    for (int i = 0; i < sentencesSize; i++)
    {
        wordsNum = 1;
        for (int j = 0; j < strlen(sentences[i]); j++)
        {
            if (sentences[i][j] == ' ')
            {
                wordsNum++;
            }
        }
        if (wordsNum > max)
        {
            max = wordsNum;
        }
    }

    return max;
}